package com.study.shop.mapper;

import com.study.shop.entity.dto.AttrValueDTO;
import com.study.shop.entity.po.Attr;
import com.study.shop.entity.po.AttrValue;

import java.util.List;

/**
* @author eastj
* @description 针对表【attr】的数据库操作Mapper
* @createDate 2025-08-01 19:53:34
* @Entity com.study.shop.entity.po.Attr
*/
public interface AttrMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Attr record);

    int insertSelective(Attr record);

    Attr selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Attr record);

    int updateByPrimaryKey(Attr record);

    List<AttrValueDTO> getAttrByCategory(int thirdLevel);

    int existName(String attrName);

    void attrValueRelationship(AttrValue attrValue);

    void categoryAttrRelationship(Integer categoryId, Integer attrId);

    List<Integer> getValueIdsByAttrId(Integer attrId);

    int deleteAttrValueRelationshipByAttrId(Integer attrId);
}
